package com.xuan.utils;

import java.util.UUID;

public class CommonUtils {

    public static String generateCode(){
        //取出数字
        String num = UUID.randomUUID().toString().replaceAll("[^(0-9)]", "");
        return num.substring(0,4);
    }


}
